<!DOCTYPE html>
<html lang="en">
  
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>进度条</title>
  <style>
    #progress {
      background: rgb(100, 158, 206);
      width: 0;
    }
  </style>
</head>

<body>
  <div id="progress">0%</div>
  <button id="btn" onclick="progressStart()">run</button>

  <!-- <script src="./progress1.js"></script> -->
  <script src="./progress2.js"></script>

</body>

</html>